package reusingclass;


public class Exercise8 {
	public static void main(String[] args) {
		Ex8Temp2 temp = new Ex8Temp2("world");
	}
}

class Ex8Temp1 {
	public Ex8Temp1(String s) {
		System.out.println("parent's constructor" + s);
	}
}

class Ex8Temp2 extends Ex8Temp1{
	
	public Ex8Temp2() {
		this("default");
	}
	
	Ex8Temp2(String s) {
		super(s);
		System.out.println("temp2's constructor says" + s);
	}
}
